package edu.zut.hb.ambition.hospitalization.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Column;
import com.ruoyi.common.core.domain.BaseEntity;

public class Hospitalization extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 患者序号 */
    @Column(name = "zhuyuanid")
    private String zhuyuanid;

    @Column(name = "username")
    private String username;


    @Column(name = "age")
    private Long age;


    @Column(name = "sex")
    private String sex;

    @Column(name = "department")
    private String department;


    @Column(name = " doctor")
    private String doctor;


    @Column(name = "diagnose")
    private String diagnose;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Column(name = "zhuyuandate", width = 30, dateFormat = "yyyy-MM-dd")
    private Date zhuyuandate;


    @Column(name = "phone")
    private String phone;


    @Column(name = "idcard")
    private String idcard;


    @Column(name = "bednum")
    private Long bednum;


    @Column(name = "operator")
    private String operator;

    @Column(name = "money")
    private String money;


    @Column(name = "state")
    private String state;


    @Column(name = "price")
    private BigDecimal price;

    public void setZhuyuanid(Long zhuyuanid)
    {
        this.zhuyuanid = zhuyuanid;
    }

    public Long getZhuyuanid()
    {
        return zhuyuanid;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setAge(Long age)
    {
        this.age = age;
    }

    public Long getAge()
    {
        return age;
    }
    public void setSex(String sex)
    {
        this.sex = sex;
    }

    public String getSex()
    {
        return sex;
    }
    public void setDepartment(String department)
    {
        this.department = department;
    }

    public String getDepartment()
    {
        return department;
    }
    public void setDoctor(String doctor)
    {
        this.doctor = doctor;
    }

    public String getDoctor()
    {
        return doctor;
    }
    public void setDiagnose(String diagnose)
    {
        this.diagnose = diagnose;
    }

    public String getDiagnose()
    {
        return diagnose;
    }
    public void setZhuyuandate(Date zhuyuandate)
    {
        this.zhuyuandate = zhuyuandate;
    }

    public Date getZhuyuandate()
    {
        return zhuyuandate;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setIdcard(String idcard)
    {
        this.idcard = idcard;
    }

    public String getIdcard()
    {
        return idcard;
    }
    public void setBednum(Long bednum)
    {
        this.bednum = bednum;
    }

    public Long getBednum()
    {
        return bednum;
    }
    public void setOperator(String operator)
    {
        this.operator = operator;
    }

    public String getOperator()
    {
        return operator;
    }
    public void setMoney(String money)
    {
        this.money = money;
    }

    public String getMoney()
    {
        return money;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("zhuyuanid", getZhuyuanid())
                .append("username", getUsername())
                .append("age", getAge())
                .append("sex", getSex())
                .append("department", getDepartment())
                .append("doctor", getDoctor())
                .append("diagnose", getDiagnose())
                .append("zhuyuandate", getZhuyuandate())
                .append("phone", getPhone())
                .append("idcard", getIdcard())
                .append("bednum", getBednum())
                .append("operator", getOperator())
                .append("money", getMoney())
                .append("state", getState())
                .append("price", getPrice())
                .toString();
    }
}
